#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	char arr[1100];
	int n;
	cin >> n;
	getchar();
	while (n--)
	{
		int y[5] = { 0 };
		fgets(arr, 1100, stdin);
		int len = strlen(arr) - 1;
		for (int i = 0; i < len; i++)
		{
			if (arr[i] == 'a') {
				y[0]++;
			}
			if (arr[i] == 'e') {
				y[1]++;
			}
			if (arr[i] == 'i') {
				y[2]++;
			}
			if (arr[i] == 'o') {
				y[3]++;
			}
			if (arr[i] == 'u') {
				y[4]++;
			}
		}
		cout << "a:" << y[0] << endl;
		cout << "e:" << y[1] << endl;
		cout << "i:" << y[2] << endl;
		cout << "o:" << y[3] << endl;
		cout << "u:" << y[4] << endl;
		if (n != 0) {
			cout << endl;
		}
	}
	return 0;
}